package com.zdb.n1.config;

import jakarta.annotation.PostConstruct;
import org.springframework.context.annotation.Configuration;


import java.util.TimeZone;

@Configuration
public class TimeZoneConfig {

    @PostConstruct
    public void init() {
        // 设置JVM默认时区为中国时区（UTC+8）
        TimeZone.setDefault(TimeZone.getTimeZone("Asia/Shanghai"));
    }
} 